package com.climber.spb_redis.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;


import java.io.Serializable;

@Data
@AllArgsConstructor
@RedisHash(value = "person")
public class Person implements Serializable {

    @Id
    private int pid;
    @Indexed
    private String name;
}
